package com.itheima.service;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.Movies;

import java.util.List;
import java.util.Map;

public interface MoviesService {

    // 分页查询
    PageInfo<Movies> findByPage(Integer pageNum, Integer pageSize, Integer cid, String keyword);

    // 新增
    void save(Movies movies);

    // 根据id查询
    Movies findById(Integer id);

    // 修改
    void update(Movies movies);

    Map<String, List<Movies>> findMoviesListMap();
}
